//
//  IdiomExplainTableViewCell.m
//  baodongPro
//
//  Created by feng on 16/3/15.
//  Copyright © 2016年 proper. All rights reserved.
//
#define leftLabelWidth  80
#define adjustLine_RightLanelSpace   10
#import "IdiomExplainTableViewCell.h"
#import "UIView+FBDQuickCreateUI.h"
@implementation IdiomExplainTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier withFrame:(CGRect)frame
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.frame=frame;
        self.leftTipLabel=[self fbd_quickCreateUILabelWithFrame:CGRectMake(10, 0, leftLabelWidth, CGRectGetHeight(frame))];
        [self.contentView addSubview:_leftTipLabel];
        CGRect middleLineCGRect=CGRectMake(CGRectGetMaxX(_leftTipLabel.frame), 0, 1, CGRectGetHeight(frame));
        UIView* middleLine=[self fbd_quickCreateUIViewWithFrame:middleLineCGRect];
        [self.contentView addSubview:middleLine];
        CGFloat originXRightLabel=CGRectGetMaxX(middleLineCGRect)+adjustLine_RightLanelSpace;
        CGRect rightLabelCGRect=CGRectMake(originXRightLabel, 0, ScreenW-originXRightLabel, CGRectGetHeight(frame));
        self.rightContentLabel=[self fbd_quickCreateUILabelWithFrame:rightLabelCGRect];
        [self.contentView addSubview:_rightContentLabel];
    }







    return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
